package com.woniuxy.redis.mapper;/*
@author houguai
@create 2021-01-13 11:17
*/

import com.woniuxy.redis.entity.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TeacherMapper {

    @Select("select * from teacher")
    public List<Teacher> all();

    @Select("select * from teacher where id = #{id}")
    public Teacher findById(int id);


}
